Function for solving the problem of Chinese and English string length
The code is as follows:
Function strSplit ($ s, $ len ){$ End = '... ';$ Result = '';$ StrLen = strlen ($ s );If ($ strLen Return $ s;}$ Len-= 2;For ($ I = 0; $ I $ C = $ s [$
Solves the problem of Chinese and English string length. Copy the code as follows: functionstrSplit ($ s, $ len) {$ end ...; $ Result; $ strLenstrlen ($ s); if ($ strLen $ len) {return $ s;} $ len-2; for ($ i0; $ I $ len $ I $ strLen; $ I ++) {$ c $
Chinese partner English lines: Chinese partner English lines solve Chinese and English string length problem function: Copy the code as follows: functionstrSplit ($ s, $ len) {$ end ...; $ Result; $ strLenstrlen ($ s); if ($ strLen & lt; $ len)
Copy codeThe Code is as follows: function strSplit ($ s, $ len ){
$ End = '... ';
$ Result = '';
$ StrLen = strlen ($ s );
If ($ strLen Return $ s;
}
$ Len-= 2;
For ($ I = 0; $ I $ C = $ s [$ I];
If (ord ($ c) $ Result. = $ c;
} Elseif ($ I
Reprint Address: http://www.cnblogs.com/zhaoguan_wang/p/5169821.htmlBackground notes:When you look at a book today, you occasionally find that "when you perform a delete operation on an index row, you add a delete tag to the row, and the index row
The code is as follows:Copy code Fill in a mc------------*/Import flash. display. BitmapData;Import flash. geom .*;// Draw a rectangleFunction createRectangle (x: Number, y: Number, w: Number, h: Number, mc: MovieClip ){Mc. moveTo (x, y );Mc.
To allow PL/SQL functions to return multiple rows of data, a ref cursor or a data set must be returned. Ref cursor is limited to the data that can be selected from the query. The entire set must be specific before it can be returned. Oracle 9i
Some time ago, we encountered this problem when performing a batch data review or deletion function:
Because the review or deletion operation is performed in the stored procedure, we plan to splice the primary key of the selected data into a string
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.